package UserSettings;

import java.io.BufferedReader;
import java.io.IOException;
import java.io.PrintWriter;
import java.util.HashMap;

/*
 * Protocol for getting the messages about settings
 * changing according the user .
 * 1. Changing the root folder for listenning
 * 2. Setting the frequency of server updating
 * 3. Stop the running of the modul - then we have to stop all the
 * threads with the Task Manager
 * 4. Stop listening to the dropbox folder changes only - we have to
 * call "pauseWatch" method of TaskManager.
 */
public class configProtocol  
{
	/*BufferedReader in; PrintWriter out;
	 HashMap<String,String> hm;
	 public configProtocol(BufferedReader in, PrintWriter out)
	 {
	  this.in = in; this.out = out;
	  hm=new HashMap<String,String>();
	  hm.put("hello", "world!");
	  hm.put("Alice", "Bob!");
	  hm.put("Exit", "bye!");
	 }
	 
	 public void run()
	 {
	  String request="",response="";
	  try {
	  while(!request.startsWith("Exit"))
	  {
	   request=in.readLine();
	   response=hm.get(request);
	   if(response!=null) out.println(response);
	   else out.println("?");
	   }
	   } catch (IOException e) {}
	}*/
}
